package vn.smartoffice.promail.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import vn.smartoffice.mapper.IMapper;
import vn.smartoffice.promail.entity.MailContact;

@Repository
public interface MailContactMapper extends IMapper<MailContact> {
	
	List<MailContact> findByUserId(long userId);
	
	List<MailContact> findByKeyword(String keyword);
	
	List<MailContact> findByUserGroupId(@Param("userId")long userId, @Param("groupId") long groupId);
	
	void deleteByUserGroupId(@Param("userId")long userId, @Param("groupId") long groupId);

}
